package com.dianban.dao;

import com.dianban.entity.Card;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CardDao {

    Card findByCardNum(@Param("cardNum") String cardNum);

    void update(@Param("id") Long id, @Param("status") String status, @Param("userId") Long userId, @Param("activationTime") Date activationTime, @Param("storeId") String storeId);

    List<Card> findList(@Param("userId") Long userId, @Param("storeId") String storeId);

    Card findById(@Param("id") Long id);

    int updateVerify(@Param("id") Long id,@Param("hasVerify") Integer hasVerify);

}
